-
Notifications
You must be signed in to change notification settings - Fork 605
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(scatter): 散点图刷选交互之后的 scale 处理 #2649
Conversation
🎊 PR Preview d0de0df has been successfully built and deployed to https://antvis-G2Plot-preview-pr-2649.surge.sh?type=diff&date=2021-06-22 🕐 Build time: 81.216s 🤖 By surge-preview |
depends on: antvis/G2#3485
Pull Request Test Coverage Report for Build 960795950
💛 - Coveralls |
const maxX = max(xValues); | ||
const yValues = data.map((d) => d[yField]); | ||
const minY = min(yValues); | ||
const maxY = max(yValues); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里要做性能提升。其实只需要判断 isSameXValue,isSameYValue。
meta({ chart, options }); | ||
} | ||
}); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可以放到 changeData 函数中,用 this.once 更节省。
PR includes
Screenshot